﻿using ATSimDto.DriverExamine;
using AutoMapper;
using BCDto.TMS.Driver.DriverExamine;
using BCEntity.TMS.Driver.DriverExamine;
using System;

namespace BCService.MapperProfiles.TMS.Driver
{
    public class DriverExamineProfile : Profile
    {
        public DriverExamineProfile()
        {
            CreateMap<DriverExaminePaperEntity, DriverExaminePaperDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExaminePaperDto, DriverExaminePaperEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExaminePaperRequestDto, DriverExaminePaperEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineMarkEntity, DriverExamineMarkDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineMarkDto, DriverExamineMarkEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineMarkRequestDto, DriverExamineMarkEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionEntity, DriverExamineTestQuestionDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionDto, DriverExamineTestQuestionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionRequestDto, DriverExamineTestQuestionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionAnswerEntity, DriverExamineTestQuestionAnswerDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionAnswerDto, DriverExamineTestQuestionAnswerEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverExamineTestQuestionAnswerRequestDto, DriverExamineTestQuestionAnswerEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
